from django.shortcuts import render

# Create your views here.
def index(request):
    return render(request,'news/index.html')


# 如果在url中定义了参数, 则在视图函数中定义响应的参数
def news_detail(request,news_id):
    return render(request,'news/news_detail.html')


def search(request):
    return render(request,'news/search.html')